import java.io.*;
import java.text.DateFormat;
import java.util.Date;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Content-type: text/html\n\n");
        System.out.println("<html>");
        System.out.println("<head><title>Hello World</title></head>");
        System.out.println("<H1>Hello World</H1>");
        System.out.println("I'm a Java program<br>");
        Date d = new Date();
        DateFormat df = DateFormat.getDateInstance();
        System.out.println(df.format(d));
        System.out.println("</body>");
        System.out.println("</html>");
    }
}